﻿<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="SshTraderPrecStoricoEdit.aspx.cs" Inherits="SshTraderPrecStoricoEdit" Title="SshTraderPrecStorico Edit" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Ssh Trader Prec Storico - Add/Edit</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:MultiFormView ID="FormView1" DataKeyNames="IdTraderPrecStorico" runat="server" DataSourceID="SshTraderPrecStoricoDataSource">
		
			<EditItemTemplatePaths>
				<data:TemplatePath Path="~/Admin/UserControls/SshTraderPrecStoricoFields.ascx" />
			</EditItemTemplatePaths>
		
			<InsertItemTemplatePaths>
				<data:TemplatePath Path="~/Admin/UserControls/SshTraderPrecStoricoFields.ascx" />
			</InsertItemTemplatePaths>
		
			<EmptyDataTemplate>
				<b>SshTraderPrecStorico not found!</b>
			</EmptyDataTemplate>
			
			<FooterTemplate>
				<asp:Button ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" />
				<asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />
				<asp:Button ID="CancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
			</FooterTemplate>

		</data:MultiFormView>
		
		<data:SshTraderPrecStoricoDataSource ID="SshTraderPrecStoricoDataSource" runat="server"
			SelectMethod="GetByIdTraderPrecStorico"
		>
			<Parameters>
				<asp:QueryStringParameter Name="IdTraderPrecStorico" QueryStringField="IdTraderPrecStorico" Type="String" />

			</Parameters>
		</data:SshTraderPrecStoricoDataSource>
		
		<br />

		<data:EntityGridView ID="GridViewSshUtenzeGasStorico1" runat="server"
			AutoGenerateColumns="False"	
			OnSelectedIndexChanged="GridViewSshUtenzeGasStorico1_SelectedIndexChanged"			 			 
			DataSourceID="SshUtenzeGasStoricoDataSource1"
			DataKeyNames="IdUtenzeGasStorico"
			AllowMultiColumnSorting="false"
			DefaultSortColumnName="" 
			DefaultSortDirection="Ascending"	
			ExcelExportFileName="Export_SshUtenzeGasStorico.xls"  		
			Visible='<%# (FormView1.DefaultMode == FormViewMode.Insert) ? false : true %>'	
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" />
				<data:HyperLinkField HeaderText="Id Trader Prec Storico" DataNavigateUrlFormatString="SshTraderPrecStoricoEdit.aspx?IdTraderPrecStorico={0}" DataNavigateUrlFields="IdTraderPrecStorico" DataContainer="IdTraderPrecStoricoSource" DataTextField="MeseInizioFornitura" />
				<asp:BoundField DataField="CdCliente" HeaderText="Cd Cliente" SortExpression="[CD_CLIENTE]" />				
				<asp:BoundField DataField="DsCliente" HeaderText="Ds Cliente" SortExpression="[DS_CLIENTE]" />				
				<asp:BoundField DataField="CdAteco" HeaderText="Cd Ateco" SortExpression="[CD_ATECO]" />				
				<asp:BoundField DataField="CdPuntoFornitura" HeaderText="Cd Punto Fornitura" SortExpression="[CD_PUNTO_FORNITURA]" />				
				<asp:BoundField DataField="CdComune" HeaderText="Cd Comune" SortExpression="[CD_COMUNE]" />				
				<asp:BoundField DataField="ConsumoAnnuoStimato" HeaderText="Consumo Annuo Stimato" SortExpression="[CONSUMO_ANNUO_STIMATO]" />				
				<asp:BoundField DataField="CdPrelievoAeeg" HeaderText="Cd Prelievo Aeeg" SortExpression="[CD_PRELIEVO_AEEG]" />				
				<data:HyperLinkField HeaderText="Id Stato" DataNavigateUrlFormatString="SshStatoRelazioniEdit.aspx?IdStato={0}" DataNavigateUrlFields="IdStato" DataContainer="IdStatoSource" DataTextField="DscStato" />
				<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="[Note]" />				
				<asp:BoundField DataField="SAreaUscita" HeaderText="S Area Uscita" SortExpression="[s_area_uscita]" />				
			</Columns>
			<EmptyDataTemplate>
				<b>No Ssh Utenze Gas Storico Found! </b>
				<asp:HyperLink runat="server" ID="hypSshUtenzeGasStorico" NavigateUrl="~/admin/SshUtenzeGasStoricoEdit.aspx">Add New</asp:HyperLink>
			</EmptyDataTemplate>
		</data:EntityGridView>					
		
		<data:SshUtenzeGasStoricoDataSource ID="SshUtenzeGasStoricoDataSource1" runat="server" SelectMethod="Find"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:SshUtenzeGasStoricoProperty Name="SshStatoRelazioni"/> 
					<data:SshUtenzeGasStoricoProperty Name="SshTraderPrecStorico"/> 
				</Types>
			</DeepLoadProperties>
			
		    <Parameters>
				<data:SqlParameter Name="Parameters">
					<Filters>
						<data:SshUtenzeGasStoricoFilter  Column="IdTraderPrecStorico" QueryStringField="IdTraderPrecStorico" /> 
					</Filters>
				</data:SqlParameter>
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" /> 
		    </Parameters>
		</data:SshUtenzeGasStoricoDataSource>		
		
		<br />
		

</asp:Content>

